home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / cprot20h.zip / CPROT20.H next >
C/C++ Source or Header  |  1995-07-07  |  3KB  |  73 lines

  1. /************************************************************
  2.                Include file CProtect
  3.  
  4.                ⌐   Thomas Lichtneckert 1995
  5.                    Nordenski÷ldsgatan 24
  6.                    S-413 09 G÷teborg
  7.                    Sweden
  8.                fax:    +46 - 31 121 621
  9.                voice:  +46 - 31 145 131
  10.                email:  Thomas.Lichtneckert@abc.se
  11. ************************************************************/
  12.  
  13. #ifndef _CPROTECT_
  14. #define _CPROTECT_
  15.  
  16. #include <windows.h>
  17.  
  18. #define FILE_NOT_FOUND          -10
  19. #define PATH_NOT_VALID          -11
  20. #define NO_PATH              -12
  21. #define NOT_REMOVABLE          -13
  22. #define DRIVE_OK              0
  23. #define NO_ARGUMENTS          1
  24. #define DRIVE_NOT_FLOPPY      2
  25. #define DRIVE_NOT_READY          3
  26. #define DRIVE_NOT_VALID          4
  27. #define DRIVE_ERROR          5
  28. #define WRONG_DISKETTE          6
  29. #define DRIVE_WRPROT          7
  30. #define DRIVE_WRPROT_A          8
  31. #define DRIVE_WRPROT_B          9
  32. #define DISK_ISIN_A          10
  33. #define DISK_ISIN_B          11
  34. #define NOT_REGISTERED          20
  35. #define NO_REGINFO          21
  36. #define NO_SERNUMBER          22
  37. #define FEATURES_NOT_AVAILABLE    23
  38. #define WRONG_CODE         24
  39. #define IS_REGISTERED         748
  40.  
  41. #define  WINAPI _far _pascal
  42.  
  43. #if __cplusplus
  44. extern "C" {
  45. #endif
  46.     /* NB!                              */
  47.     /* cpMakeRegCode should be commented out when using cprot20u.dll */
  48.     /*                              */
  49.     int WINAPI cpMakeRegCode( int features, char * serialnum, char * regcode );
  50.  
  51.     int WINAPI cpCFGMake( char * path, unsigned long magic, unsigned long filever );
  52.     int WINAPI cpGetSernum( char* path, char * serialnum );
  53.     int WINAPI cpRegisterProgram( char * path, char * regcode );
  54.     int WINAPI cpCheckRegCode( char * path, char * regcode );
  55.     int WINAPI cpGetRegisteredName( char* path, char * namn );
  56.     int WINAPI cpGetRegisteredCompany( char * path, char * namn);
  57.     int WINAPI cpSetRegisteredNames( char * path, char * namn, char * firma );
  58.     int WINAPI cpIsRegistered( char * path );
  59.     int WINAPI cpGetUParams( char* path, unsigned long *paraml, int *param1, int *param2, int *param3, int *param4, unsigned int *param5 );
  60.     int WINAPI cpSetUParams( char* path, unsigned long paraml, int param1, int param2, int param3, int param4, unsigned int param5 );
  61.     int WINAPI cpSetFTime( char * path, unsigned long datum, unsigned int tid );
  62.     int WINAPI cpWhichDrive( char * fil );
  63.     int WINAPI cpDirRemove( char * path );
  64.     int WINAPI cpStartProgram( char * path );
  65.     int WINAPI cpEndProgram( char * path );
  66.     int WINAPI cpGetUStatistics( char * path, unsigned int * antggr, unsigned int *stim, unsigned int *smin, unsigned int *ssek, unsigned int *atim, unsigned int *amin, unsigned int *asek );
  67.     long WINAPI cpGetFileinfo( char * path, long * version );
  68.  
  69. #if __cplusplus
  70. }
  71. #endif
  72. #endif    /* _CPROTECT_ */
  73.